Keep a cache of the linear version of BablImage's needed for
authorØyvind Kolås <ok@src.gnome.org>
Sun, 11 Nov 2007 14:12:24 +0000 (14:12 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Sun, 11 Nov 2007 14:12:24 +0000 (14:12 +0000)
commit265151e1b8667ea383d47640f657d1eb598b5688
treea74302bdbca5e4df8996d703611bbc6947f802aa
parent4098b8196c788feecd0c5cecf83d00806e4b22c6
Keep a cache of the linear version of BablImage's needed for
BablFormats around. This reduces the constant overhead for
conversions.
* babl/babl-classes.h: added .image_template field to BablFormat.
* babl/babl-format.c: (format_new): make .image_template NULL by
defualt.
* babl/babl-image.c: (babl_image_from_linear): use .image_template if
available instead of creating our own BablImage from scratch.
* babl/babl-memory.c: (babl_free): special case freeing of BablImage
and BablFormat to do the extra juggling needed for the image_template
cache.

svn path=/trunk/; revision=248
ChangeLog
babl/babl-classes.h
babl/babl-format.c
babl/babl-image.c
babl/babl-memory.c